package com.gree.auth.config.configuration;

import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.gree.auth.config.store.MyRedisTokenStore;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.filter.OncePerRequestFilter;

/**
 * token过滤器 验证token有效性，自定义过滤器暂时无用
 *
 */
@Component
public class MyAuthenticationTokenFilter extends OncePerRequestFilter
{

    @Autowired
    private MyRedisTokenStore myRedisTokenStore;

    @Override
    protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
            throws ServletException, IOException
    {
        chain.doFilter(request, response);
    }
}
